package com.springboot.frame.comm.domain;


import java.io.IOException;
import java.io.Writer;
import java.util.Map;
import com.springboot.frame.comm.render.Render;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author TaoYu
 */
@Data
@AllArgsConstructor
public class FileTemplate {

  private Render render;

  private String fileName;

  private String filePackage;

  private String filePath;

  public void render(Map<String, Object> data, Writer writer) throws IOException {
    render.process(data, writer);
  }

}
